<?php

use Illuminate\Support\Facades\Route;


use App\Install\Controllers\IndexController as InstallController;
use App\Shuixing\Controllers\IndexController as IndexController;
use App\Shuixing\Controllers\HotController as HotController;
use App\Shuixing\Controllers\TagController as TagController;
use App\Shuixing\Controllers\DesignController as DesignController;
use App\Shuixing\Controllers\ContactController as ContactController;
use App\Shuixing\Controllers\CircleController as CircleController;
use App\Shuixing\Controllers\CirclesController as CirclesController;
use App\Shuixing\Controllers\ClauseController as ClauseController;
use App\Shuixing\Controllers\LoginController as LoginController;
use App\Shuixing\Controllers\RegisterController as RegisterController;
use App\Shuixing\Controllers\SearchController as SearchController;
use App\Shuixing\Controllers\SingleController as SingleController;
use App\Shuixing\Controllers\ToolController as ToolController;
use App\Shuixing\Controllers\LostController as LostController;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/welcome', function () {

    return view('welcome');
});

Route::get('/install', [InstallController::class, 'checkEnv']);
Route::get('/install/information', [InstallController::class, 'index']);
Route::post('/install/check_information', [InstallController::class, 'checkInformation']);
Route::get('/install/success', [InstallController::class, 'putSql']);


Route::get('/', [IndexController::class, 'index']);
Route::get('/hot', [HotController::class, 'index']);
Route::get('/tag/{id?}', [TagController::class, 'index']);
Route::get('/design/{id}', [DesignController::class, 'index']);
Route::get('/contact', [ContactController::class, 'index']);
Route::get('/circle/{id?}', [CircleController::class, 'index']);
Route::get('/circles/{id}', [CirclesController::class, 'index']);
Route::get('/clause/{id}', [ClauseController::class, 'index']);
Route::get('/login', [LoginController::class, 'index']);
Route::get('/search/{id}/{keyword?}', [SearchController::class, 'index']);
Route::get('/single/{id?}', [SingleController::class, 'index']);
Route::get('/tool/{id}', [ToolController::class, 'index']);
Route::get('/404', [LostController::class, 'index']);

//PC --api
Route::get('/wx_login', [IndexController::class, 'wxLogin']);
Route::get('/pc_login', [IndexController::class, 'pcLogin']);
Route::get('/pc_userinfo', [LoginController::class, 'pcUserinfo']);

